package com.yida.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.yida.bean.photo;
import com.yida.bean.phototype;

public interface serverphoto {
	List<phototype>  phototype();
	List<photo> photos(Integer id);
	phototype   phototypebyid(Integer id);
	
	//删除相册
	boolean   phototypedelete(Integer id);
	//添加相册
	
	Integer insertphototype(phototype phototype);
	
	//插入图片
	Integer insertphoto(photo photo);
	
	//更改相册
	Integer  phototypeupdate(phototype phototype);
	
	//删除图片
	boolean  photodelete(Integer id,String imgurl);
	
	//上传图片
	
	boolean  insertphotoup(Integer id,String name,MultipartFile file[]);
}
